#include "TCP_Client.h"

using namespace std;

int main() {

    TCPClient client("127.0.0.1", 8080);
    if (client.connectToServer()) {
        client << "Hello from client!";  // 向服务器发送数据
        string response;
        client >> response;  // 从服务器接收数据
        cout << "从服务器接收到: " << response << endl;
    }

    return 0;
}
